﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace NDTSite.Controllers
{
    public class ErrorController : ApplicationController
    {
        public ActionResult HttpError404(string message)
        {
            ViewBag.Title = "Sorry, an error occurred while processing your request. (404)";
            ViewBag.Description = message;
            return View("Error");
        }

        public ActionResult HttpError500(string message)
        {
            ViewBag.Title = "Sorry, an error occurred while processing your request. (500)";
            ViewBag.Description = message;
            return View("Error");
        }


        public ActionResult General(string message)
        {
            ViewBag.Title = "Sorry, an error occurred while processing your request.";
            ViewBag.Description = message;
            return View("Error");
        }
    }
}
